<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<p id="p01" class="p01">周钟捷：咱们去喝酒吧</p>
		<p class="p01">龙燕：喝啥酒</p>
		<p>周钟捷：喝咱们的喜酒</p>
	</body>
	<script type="text/javascript">
		// 根据id查找标签
		//		var oP01 =  document.getElementById("p01")
		//		console.log(oP01)
		// 根据标签查找
		//		var oP02 = document.getElementsByTagName("p");
		//		console.log(oP02.length)
		// 根据类名进行查找s
		var oP03 = document.getElementsByClassName("p01")
		console.log(oP03.length)
	</script>

</html>